//
//  AppDelegate.swift
//  HMWeibo07
//
//  Created by Xwoder on 15/7/26.
//  Copyright © 2015年 Xwoder. All rights reserved.
//

import UIKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?

    func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
        window = UIWindow(frame: UIScreen.mainScreen().bounds)
        window?.backgroundColor = UIColor.whiteColor()
        window?.rootViewController = MainTabBarController()
        window?.makeKeyAndVisible()
        
        // 设置外观代理对象
        setupAppearance()
        
        return true
    }
    
    /// 设置外观代理对象
    private func setupAppearance() {
        // 设置tabBar的外观
        UITabBar.appearance().tintColor = UIColor.orangeColor()
        // 设置navigationBar的外观
        UINavigationBar.appearance().tintColor = UIColor.orangeColor()
    }

}

